/*
 * Copyright (c) TD-Tech Technologies Co., Ltd. 2024-2024. All rights reserved.
 */
import systemparameter from '@ohos.systemParameterEnhance';

export class VpUtils {
  private static readonly ROOT: string = '3';
  private static readonly VP1: string = '1';
  private static readonly VP2: string = '2';
  private static readonly UNKNOWN: string = '-1';

  public static isVp1(): boolean {
    return systemparameter.getSync('ro.config.workerspace', VpUtils.ROOT) === VpUtils.VP1;
  }

  public static isVp2(): boolean {
    return systemparameter.getSync('ro.config.workerspace', VpUtils.ROOT) === VpUtils.VP2;
  }
}
